package com.google.android.exoplayer2.metadata.scte35;

import android.os.Parcel;
import android.os.Parcelable.Creator;
import o.anc;
import o.anq;

public final class TimeSignalCommand extends SpliceCommand {
    public static final Creator<TimeSignalCommand> CREATOR = new Creator<TimeSignalCommand>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return ˏ(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return ˊ(i);
        }

        public TimeSignalCommand ˏ(Parcel parcel) {
            return new TimeSignalCommand(parcel.readLong(), parcel.readLong());
        }

        public TimeSignalCommand[] ˊ(int i) {
            return new TimeSignalCommand[i];
        }
    };
    public final long ˊ;
    public final long ˏ;

    private TimeSignalCommand(long j, long j2) {
        this.ˏ = j;
        this.ˊ = j2;
    }

    public static TimeSignalCommand ˊ(anc o_anc, long j, anq o_anq) {
        long ˎ = ˎ(o_anc, j);
        return new TimeSignalCommand(ˎ, o_anq.ˏ(ˎ));
    }

    static long ˎ(anc o_anc, long j) {
        long ʽ = (long) o_anc.ʽ();
        if ((128 & ʽ) != 0) {
            return ((((1 & ʽ) << 32) | o_anc.ˋॱ()) + j) & 8589934591L;
        }
        return -9223372036854775807L;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeLong(this.ˏ);
        parcel.writeLong(this.ˊ);
    }
}
